<?=$this->form ( $this->element->getName (), $this->element->getAttribs (), false ); ?>
<?php
    $sesionTabBoton = new Zend_Session_Namespace("TABBOTON");
    
    echo $this->renderElement ( $this->element->codtab );
    echo $this->renderElement ( $this->element->codboton );
    echo $this->renderElement ( $this->element->codboton2 );
    echo $this->renderElement ( $this->element->codsintesis);
    
    $domConfig = Zend_Registry::get('domConfig');
?>
<table width="100%" align="center" class="iceDatTbl zebra">
	<thead>
		<tr>
			<th colspan="2"><?php echo $this->element->contenido->renderLabel (); ?></th>
		</tr>
	</thead>
	<tr>
		<th colspan="2">*<?php echo $sesionTabBoton->labelsintesis;?></th>
	</tr>
	<tr>
		<td colspan="2"><?php
		
		echo $this->renderElement ( $this->element->contenido );
		echo $this->element->contenido->renderErrors ();
		?></td>
	</tr>
	<?php
	if(in_array($sesionTabBoton->opcion,array("3_3_4","3_3_5","3_3_6"))){?>
	<tr>
		<th colspan="2"><?php echo $this->element->contenido1->renderLabel ();?></th>
	</tr>
	<tr>
		<td colspan="2"><?php
		echo $this->renderElement ( $this->element->contenido1 );
		echo $this->element->contenido1->renderErrors ();
		echo $this->renderElement ( $this->element->codsintesis1);
		?></td>
	</tr>
	<?php }
	if($sesionTabBoton->opcion=="3_3_5"){?>
	<tr>
		<th colspan="2"><?php echo $this->element->contenido2->renderLabel ();?></th>
	</tr>
	<tr>
		<td colspan="2"><?php
		echo $this->renderElement ( $this->element->contenido2 );
		echo $this->element->contenido2->renderErrors ();
		echo $this->renderElement ( $this->element->codsintesis2);
		?></td>
	</tr>
	<tr>
		<th colspan="2"><?php echo $this->element->contenido3->renderLabel ();?></th>
	</tr>
	<tr>
		<td colspan="2"><?php
		echo $this->renderElement ( $this->element->contenido3 );
		echo $this->element->contenido3->renderErrors ();
		echo $this->renderElement ( $this->element->codsintesis3);
		?></td>
	</tr>
	
	<?php }?>
	<?php if(!in_array($sesionTabBoton->opcion,array("2_1_1","3_3_1"))){?>
    	<?php if(!empty($sesionTabBoton->label)):?>
    		<tr>
    			<th colspan="2" style="text-align:center;">
    			<?php
    			    echo $sesionTabBoton->label;
    			    if ($sesionTabBoton->opcion=="3_4_3"){
                        echo ". <BR>Los archivos adjuntos deben denominarse así: RecLog_(Nombre del recurso logístico) o Lab_(Nombredel laboratorio) y luego una referencia al contenido.";
    			    }
    			?>
    			</th>
    		</tr>
    	<?php endif;?>
    	<?php if (! $this->element->isStatic()): ?>
    	<tr>
    		<td colspan="2" class="iceDatTblRow2" style="text-align:center;">Tamaño máximo <strong>10 Mb. </strong> Extensiones admitidas (<?php echo $domConfig->EXTENSIONES_ARCHIVOS;?>)</td>
    	</tr>
    	<tr>
    		<th><?php echo $this->element->archivo->renderLabel (); ?></th>
    		<td><?php
    			    echo $this->renderElement ( $this->element->archivo );
        		    echo $this->element->archivo->renderErrors();
    //    	    echo $this->element->archivo->renderDescription();
    			?></td>
    	</tr>
    	<?php endif;?>
    <?php }?>
    <?php if (! $this->element->isStatic()): ?>
    <tr>
		<td  class="iceDatTblRow2" style="text-align:center;" colspan="2">
        <?php
		echo $this->renderElement ( $this->element->btnSubmit );
//		echo $this->renderElement ( $this->element->cancelar );
		?>
        </td>
	</tr>
	<?php endif; ?>
</table>
</form>